package com.sunnyweather.android.logic.model

import com.google.gson.annotations.SerializedName
import java.util.*

data class DailyResponse(val status:String?,val result:Result?){
    data class Result(val daily:Daily)

    data class Daily(val temperature:List<Temperature>, val skycon:List<Skycon>, @SerializedName("air_quality")val airQuality:AirQuality, @SerializedName("life_index")val lifeIndex:LifeIndex)

    data class Temperature(val date:Date,val max:Float,val min:Float,val avg:Float)

    data class Skycon(val date: Date,val value:String)

    data class AirQuality(val aqi:List<DailyAQI>)

    data class DailyAQI(val date: Date, val max: RealTimeResponse.AQI, val min: RealTimeResponse.AQI, val avg: RealTimeResponse.AQI)

    data class LifeIndex(val ultraviolet:List<LifeDescription>,val carWashing:List<LifeDescription>,val dressing:List<LifeDescription>,val comfort:List<LifeDescription>,val coldRisk:List<LifeDescription>)

    data class LifeDescription(val date: Date,val index: String,val desc:String)


}